package ldu.guofeng.imdemo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import ldu.guofeng.imdemo.R;
import ldu.guofeng.imdemo.base.Constant;
import ldu.guofeng.imdemo.fragment.ContactsFragment;
import ldu.guofeng.imdemo.fragment.SessionFragment;
import ldu.guofeng.imdemo.im.SmackUtils;
import ldu.guofeng.imdemo.view.CustomIndexToolbar;
import ldu.guofeng.imdemo.view.CustomReturnToolbar;

/**
 * 好友管理
 */
public class FriendManagemantActivity extends android.app.Activity  {

    private CustomIndexToolbar mToolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_friend_managemant);
        init();
    }
    private void init() {
        //添加好友点击监听
        mToolbar = (CustomIndexToolbar) findViewById(R.id.title_bar);
        mToolbar.setRightButtonListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
 /*               //添加好友
                Intent intent = new Intent(AnonymousChatActivity.this, AddFriendActivity.class);
                AnonymousChatActivity.this.startActivity(intent);*/
            }
        });
        mToolbar.setLeftButtonListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                {
                    //添加好友
                    Intent intent = new Intent(FriendManagemantActivity.this, ContactsFragment.class);
                    finish();
                }
            }
        });

    }
}
